.class Les/r9$a;
.super Ljava/io/BufferedWriter;
.source "Mp4MoovCacheWriter.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/r9;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "a"
.end annotation


# instance fields
.field private a:Ljava/io/Writer;


# direct methods
.method private constructor <init>(Ljava/io/Writer;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;)V

    .line 2
    iput-object p1, p0, Les/r9$a;->a:Ljava/io/Writer;

    return-void
.end method

.method static a(Ljava/io/File;)Les/r9$a;
    .locals 1

    .line 1
    :try_start_0
    new-instance v0, Ljava/io/FileWriter;

    invoke-direct {v0, p0}, Ljava/io/FileWriter;-><init>(Ljava/io/File;)V

    .line 2
    new-instance p0, Les/r9$a;

    invoke-direct {p0, v0}, Les/r9$a;-><init>(Ljava/io/Writer;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :catch_0
    const/4 p0, 0x0

    return-object p0
.end method


# virtual methods
.method public close()V
    .locals 1

    .line 1
    :try_start_0
    invoke-super {p0}, Ljava/io/BufferedWriter;->close()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 2
    :catch_0
    :try_start_1
    iget-object v0, p0, Les/r9$a;->a:Ljava/io/Writer;

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Les/r9$a;->a:Ljava/io/Writer;

    invoke-virtual {v0}, Ljava/io/Writer;->close()V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1

    :catch_1
    :cond_0
    return-void
.end method
